package byggemarked;

import ViewsTUI.*;
import java.util.ArrayList;

/**
 * @author Morten
 */
public class MainTUI
{
    public MainTUI()
	{
		ArrayList<String> options = new ArrayList<String>();
		options.add("Salg");
		options.add("Udlejning");
		options.add("Kunder");
		options.add("Lager");
		options.add("Køkkener");
		options.add("Maskiner");
		options.add("Leverandører");
		options.add("Ansatte");
		boolean isTimeToQuit = false;
		while(!isTimeToQuit)
		{
			Console.printMenu(true, "Hovedmenu", options);
			int choice = Console.readChoice(0, 8);
			Console.print("valg: "+choice);
			switch(choice)
			{
				case 1: new SaleView();		break;
				case 2: new RentalView();	break;
				case 3: new CustomerView();	break;
				case 4: new StockView();	break;
				case 5: new KitchenView();	break;
				case 6: new MachineView();	break;
				case 7: new SupplierView(); break;
				case 8: new EmployeeView();	break;
				case 0: isTimeToQuit = true;
			}
		}
    }
}